package com.cct.digitalarchapi.service;


import com.cct.digitalarchapi.common.Response;
import com.cct.digitalarchapi.pojo.vo.AllMenuVo;
import com.cct.digitalarchapi.pojo.vo.AllRoleMenuVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @FileName RoleAndMenuService
 * @Description 角色菜单服务类
 * @Author Created by chenmingzhe
 * @Date 2023/11/19
 **/

public interface RoleAndMenuService {

    Response addRole(String roleName, List<Integer> menuList);

    Response updateRole(int roleId,String roleName, List<Integer> menuList);

    Response deleteRole(int roleId);

    Response addRoleMenu(int roleId, List<Integer> menuList);

    List<AllMenuVo>  getAllMenu(String flag,int roleId);

    List<AllRoleMenuVo> getRoleMenu(int roleId,String isRoot);

    Response updateMenuIcon(String iconPath,int menuId);

    Response getAllRole();

    Response getMenuByRole(int roleId);

}
